package com.sakiko.aspects;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * projectName: com.sakiko.aspects
 *
 * @author: Yang
 * description:
 * time: 2025/7/28 14:12
 */
@Aspect
@Component
@Order(10)
public class LogAspect {

    @Before("com.sakiko.pointcuts.LogPc.pc1()")
    public void pre(){
        System.out.println("老弟来了！！！");
    }

    @After("com.sakiko.pointcuts.LogPc.pc1()")
    public void ret(){
        System.out.println("老弟走了！！！");
    }

}
